Set objShell = CreateObject("WScript.Shell")
 
' 设置你想要切换到的目录
strDirectory = "E:\pythonProject\WowAid"
 
' 构建cd命令，注意这里不能直接执行cd命令
strCommand = "cmd.exe /c cd /d " & strDirectory & " "
 
' 执行命令
objShell.Run strCommand, 1, True
'iReturn=objShell.Run("cmd.exe /C md e:\b", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C conda activate wowddyy3.9", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C md e:\b1", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C taskkill /f /im openLabWowMain.exe", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C md e:\b2", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C ping -n 3 127.0.0.1 >nul", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C md e:\b3", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C pyinstaller -D openLabWowMain.py --noconsole --noconfirm", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C md e:\b4", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C xcopy E:\pythonProject\WowAid\util E:\pythonProject\WowAid\dist\openLabWowMain /s", 0, TRUE)
iReturn=objShell.Run("cmd.exe /C md e:\b5", 0, TRUE)
msgbox "重新编译态势感知精灵程功!"
Set objShell = Nothing